<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<!DOCTYPE html>
<html>
	<head>
		<title>编辑分享</title>
		<meta name="decorator" content="default"/>
		<script type="text/javascript">
			$(function() {
				//初始化表单验证
				$("#inputForm").initValidform();
			});
		</script>
	</head>
	
	<body class="mainbody">
		<form:form id="inputForm" modelAttribute="share" action="${ctx}/sd/share/save" method="post" class="form-horizontal">
			<form:hidden path="id"/>
			<!--导航栏-->
			<div class="location">
				<a href="${ctx}/sd/share/list" class="back"><i></i><span>返回列表页</span></a>
				<a href="${ctx}/center" class="home"><i></i><span>首页</span></a> 
				<i class="arrow"></i> 
				<a href="${ctx}/sd/share/form?id=${share.id}"><span>分享</span></a>
				<shiro:hasPermission name="sd:share:edit"><i class="arrow"></i><span>${not empty share.id ? '修改':'添加' }分享</span></shiro:hasPermission>
			</div>	
			<div class="line10"></div>
			<!--/导航栏-->
	
			<!--内容-->
			<div id="floatHead" class="content-tab-wrap">
				<div class="content-tab">
					<div class="content-tab-ul-wrap">
						<ul>
							<li><a class="selected" href="javascript:;">分享信息</a></li>
						</ul>
					</div>
				</div>
			</div>
	
			<div class="tab-content">
				<dl>
					<dt>分享码</dt>
					<dd>
						<form:input path="code" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入分享码" errormsg="请输入分享码" sucmsg=" "/>
						<span class="Validform_checktip">*请输入分享码</span>
					</dd>
				</dl>
				<dl>
					<dt>会员编号</dt>
					<dd>
						<form:input path="memberId" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入会员编号" errormsg="请输入会员编号" sucmsg=" "/>
						<span class="Validform_checktip">*请输入会员编号</span>
					</dd>
				</dl>
				<dl>
					<dt>奖品阶段码</dt>
					<dd>
						<form:input path="awardSectionCode" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入奖品阶段码" errormsg="请输入奖品阶段码" sucmsg=" "/>
						<span class="Validform_checktip">*请输入奖品阶段码</span>
					</dd>
				</dl>
			</div>
			<!--/内容-->
	
			<!--工具栏-->
			<div class="page-footer">
				<div class="btn-wrap">
					<input type="submit" name="btnSubmit" value="提交保存" id="btnSubmit" class="btn" /> 
					<input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);" />
				</div>
			</div>
			<!--/工具栏-->
		</form:form>
	</body>
</html>

